//
//  FirstView.m
//  WangLottery
//
//  Created by leven hu on 12-4-22.
//  Copyright 2012年 __MyCompanyName__. All rights reserved.
//

#import "FirstView.h"

@implementation FirstView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
     
        
    }
    return self;
}

- (void)drawView{

    self.backgroundColor=[UIColor clearColor];
    UIImageView *Icon=[[UIImageView alloc]initWithFrame:CGRectMake(0, 40, 100, 100)];
    [Icon setImage:[UIImage imageNamed:@"u21_original.png"]];
    Icon.center=CGPointMake(160, 0);
    [self addSubview:Icon];
    [Icon release];
    
    UILabel *lab1=[[UILabel alloc]initWithFrame:CGRectMake(0, 70, 320, 20)];
    lab1.textAlignment=UITextAlignmentCenter;
    lab1.text=@"单注奖金最高1000万";
    lab1.textColor=[UIColor redColor];
    lab1.backgroundColor=[UIColor clearColor];
    [self addSubview:lab1];
    [lab1 release];
    
    UILabel *lab2=[[UILabel alloc]initWithFrame:CGRectMake(0, 90, 320, 20)];
    lab2.textAlignment=UITextAlignmentCenter;
    lab2.text=@"剩余0天7小时0分19秒";
    lab2.textColor=[UIColor redColor];
    lab2.backgroundColor=[UIColor clearColor];
    [self addSubview:lab2];
    [lab2 release];
    
    UILabel *lab3=[[UILabel alloc]initWithFrame:CGRectMake(0, 120, 320, 20)];
    lab3.textAlignment=UITextAlignmentCenter;
    lab3.text=@"奖池89989898元";
    lab3.textColor=[UIColor redColor];
    lab3.backgroundColor=[UIColor clearColor];
    [self addSubview:lab3];
    [lab3 release];
}

// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
    }


@end
